//
//  NavigationBarView.swift
//  BasicTools
//
//  Created by S JZ on 2025/5/28.
//

import SwiftUI

public struct NavigationBarView<T: View>: View {
    @Environment(\.navigationBackgroundColor) var barBackgroundColor
    
    public var content: () -> T
    
    public init(content: @escaping () -> T) {
        self.content = content 
    }
    
    public var body: some View {
        self.content()
            .background(barBackgroundColor)
    }
}






